import request from '@/utils/request';

export const goLogin = (data) => {
	return request({
		url: '/users/login',
		method: 'post',
		data,
	});
};

export const goRegister = (data) => {
	return request({
		url: '/users/register',
		method: 'post',
		data,
	});
};

export const upadteAuth = (data) => {
	return request({
		url: '/users/update/auth',
		method: 'post',
		data,
	});
};

export const upadteCustomName = (data) => {
	return request({
		url: '/users/update/customName',
		method: 'post',
		data,
	});
};

export const upadteWxname = (data) => {
	return request({
		url: '/users/update/wxName',
		method: 'post',
		data,
	});
};

export const upadtePhone = (data) => {
	return request({
		url: '/users/update/phone',
		method: 'post',
		data,
	});
};

export const upadteAlipayUser = (data) => {
	return request({
		url: '/users/update/alipayUser',
		method: 'post',
		data,
	});
};


export const updateUserAvatarUrl = (data) => {
	return request({
		url: '/users/update/avatarUrl',
		method: 'post',
		data,
	});
};